package com.woniuxy.cloud.carl.order.common;

public enum ServiceStateEnum {
    /**
     * 服务状态:1、服务中   2、服务结束
     */
    IN_SERVICE(1,"服务中"),FINISH_SERVICE(2,"服务结束");
    private Integer code;
    private String status;

    public static ServiceStateEnum getEnum(Integer code){
        for (ServiceStateEnum value : ServiceStateEnum.values()) {
            if (value.code==code) return value;
        }
        return null;
    }


    public Integer getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }

    ServiceStateEnum(Integer code, String status) {
        this.code = code;
        this.status = status;
    }
}
